Concat

Syntax: @Concat StrVariable, variable, variable[, variable]

Concat enables strings to be concatenated. Trailing spaces will be omitted when the strings are being added together to form the new string.

The new string StrVariable can be either a string variable or string array (it cannot be an attribute). The list of strings to be added variable, variable... must be separated by a comma and can include List attributes, string variables, string arrays or literal strings.

Example

@Concat Newstr Grade, ' in the ', log[1,1], ' department'

i.e. If the value of attribute Grade was 'Director' and log[1,1] contained 'Finance' then this concat command would put 'Director in the Finance Department' into the string variable NewStr.

You can use data concatenation with ASCII codes included by prefixing the code with the # symbol. e.g. to add a CR/LF (i.e. a line break) in a string:

@Concat Name,'John', #13, #10, 'Smith'

As an alternative to using @Concat you can have data concatenation within other commands by using the + or & to separate variable names. For example:

@Assign Greeting = 'Mr ' & Surname

@Shell Drive + Directory + Program,1